package com.yjd.comm.doctor.service;

import com.yjd.comm.base.model.PagerModel;
import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.doctor.model.DoctorModel;

import java.util.List;
import java.util.Map;

/**
 * <b>description</b>：医生业务接口<br>
 * <b>time</b>：2017-06-27 08:52:14 <br>
 * <b>author</b>：  yangchangyan@yijiedai.com
 */
public interface IDoctorService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public DoctorModel insert(DoctorModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(DoctorModel model) throws Exception;

	/**
	 * 创建或者更新,大于等于1表示成功，其他失败
	 *
	 * @param dm
	 * @return
	 * @throws Exception
	 */
	public int createOrUpdate(DoctorModel dm, String doctorDetail, String[] tags) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param doctor_id
	 * @return
	 * @throws Exception
	 */
	public int delete(long doctor_id) throws Exception;

	/**
	 * 搜索医生列表
	 * @param param
	 * @return
	 * @throws Exception
	 */
	public PagerModel getDoctorListByKeys(Map<String, Object> param) throws Exception;

	/**
	 * 根据queryParamMap条件查询项目，可支持分页
	 * @param queryParamMap
	 * @return
	 * @throws Exception
	 */
	public List<Map<String, Object>> queryDoctor(Map<String, Object> queryParamMap) throws Exception;

	/**
	 * 根据queryParamMap条件查询项目，可支持分页
	 * @return
	 * @throws Exception
	 */
	public Map<Long, String> queryDoctorName(Long org_id) throws Exception;


	public int updateMap(Map param)throws Exception;

}
